package com.zack.designPattern.factory.factoryMethod;

public class Demo {

	public static void main (String[] args){
		IFactory nokiaFactory = new NokiaPhoneFactory();
		IFactory motoFactory = new MotoPhoneFactory();
		
		IProduct nokiaPhone = nokiaFactory.createProduct();
		IProduct motoPhone = motoFactory.createProduct();
		
		nokiaPhone.doSomeThing();
		motoPhone.doSomeThing();
		
	}
}
